home *** CD-ROM | disk | FTP | other *** search
- global HARP, TIGO, HORN, DRUM, CHIME, BASS, sPALETTE, gObjects, gOBJECTSD, gWorld, gPuppetlines, sQTCharSprite, gNextEnvLetter, gMIDIPlayTRUE, gInitalized, noteObjs, windowsMIDIXObj, xNAVXOBJ, xCURXOBJ, gCPU, gFileSep, gRootPath, gHDpath, gXobjs, gXOBJPath, gCDpath, gCDName
-
- on ChimeClick OBJref
- set ChimeObj to getaProp(gObjects, OBJref)
- set PAR to getaProp(gObjects, #CHIME)
- if getaProp(PAR, #State) = #nonChaotic then
- if getaProp(ChimeObj, #State) = #nonChaotic then
- set me to getaProp(getaProp(gObjects, getAt(getaProp(getaProp(ChimeObj, #SpecialChild), #nonChaotic), 1)), #animator)
- setPauseState(me, 1)
- set currentFrame to the pCurrentFrame of me
- if (currentFrame = 6) or (currentFrame = 7) then
- playSound(getaProp(ChimeObj, #sound), #cast)
- ChangeSpecialState(OBJref, #Chaotic)
- setAt(getaProp(PAR, #ChildStates), getaProp(ChimeObj, #ChimeNum), 0)
- MakeDynamic(#CHIME, #ChildStates, getaProp(PAR, #ChildStates))
- updateStage()
- if getOne(getaProp(PAR, #ChildStates), 1) < 1 then
- MakeDynamic(#CHIME, #State, #Chaotic)
- eraseRecording(#CHIME)
- end if
- exit
- end if
- ChimePlaySoundNon(OBJref)
- if getaProp(ChimeObj, #State) = #nonChaotic then
- setPauseState(me, 0)
- end if
- else
- ChimePlaySoundNon(OBJref)
- end if
- else
- if getaProp(PAR, #State) = #Chaotic then
- ChimePlaySoundChaotic(OBJref)
- end if
- end if
- end
-
- on ChimePlaySoundChaotic OBJref
- PlayNoteFromHitMap(#CHIME)
- end
-
- on ChimePlaySoundNon OBJref
- set OBj to getaProp(gObjects, OBJref)
- PlaytheNote(#CHIME)
- end
-